home *** CD-ROM | disk | FTP | other *** search
- "FILE"="Xteq Systems X-Setup Plugin 3.1"
- "TYPE"="6"
- "COUNT"="5"
- "UIPATH"="Appearance\Control Panel\General Icons"
- "NAME"="Visible Items #1"
- "VERSION"="1.13"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Display "System Properties" applet"
- "TEXT 2"="Display "Display Properties" applet"
- "TEXT 3"="Display "Add/Remove Programs" applet"
- "TEXT 4"="Display "Internet Control Panel" applet"
- "TEXT 5"="Display "Network Properties" applet"
- "DESCRIPTION 1"="This plug-in can be used to hide or show the different applets inside Start -> Settings -> Control Panel."
- "DESCRIPTION 2"="Not all of these options will be available on every system. Availability depends upon the software installed on your system."
- "DESCRIPTION 3"="NOTE: Hiding the "Internet Control Panel" applet will also hide the "Users" applet on Windows 95 or Windows 98 systems."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
- "COMMENT 2"="Special thanks to Maxwell (maxwello@hotpop.com) for his brilliant tips and CptSiskoX (CptSiskoX@flashmail.com) for his help."
- "COMMENT 3"="See also: MS KB Q207750"
-
-
- '******************************************************************
- '*** MASTER TEMPLATE (1 of X) ****
- '******************************************************************
- sVals=""
- sVals2=Array("sysdm.cpl","desk.cpl","appwiz.cpl","Inetcpl.cpl","netcpl.cpl")
- sVals3=Array("sysdm.cpl","desk.cpl","appwiz.cpl","Inetcpl.cpl","netcpl.cpl")
- '******************************************************************
- ' sVals2 = Windows 9x/NT /// sVals2 = Windows 2000
- '******************************************************************
- '*** Keep an eye on the order (must be the same as "TEXT x") ! ****
- '******************************************************************
- sPath="HKCU\Control Panel\Don't Load\"
- sFile="CONTROL.INI"
- sFileSec="Don't Load"
-
-
-
- SUB Plugin_Initialize
- if GetWinVer=4 then
- sVals=sVals3
- else
- sVals=sVals2
- end if
-
- for i=0 to UBound(sVals)
- Call ReadIt(i+1,sVals(i))
- next
- END SUB
-
- Sub ReadIt(ITM,VAL)
- If GetWinVer=2 or GetWinVer=4 then
-
- s=RegReadValue(sPath & VAL)
- if IsEmpty(s)=true then
- Call SetUIElement(ITM,true)
- else
- Call SetUIElement(ITM,false)
- end if
-
- else
-
- s=IniReadValue(sFile,sFileSec,VAL)
- if len(s)>0 then
- Call SetUIElement(ITM,false)
- else
- Call SetUIElement(ITM,true)
- end if
-
- end if
-
- End Sub
-
- 'Called when the Plugin should validate the Data the user has entered
- SUB Plugin_CheckData(ElementIndex)
- END SUB
-
- 'Called when the Plugin should apply the changes
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- for i=0 to UBound(sVals)
- Call WriteIt(i+1,sVals(i))
- next
- END SUB
-
- Sub WriteIt(ITM,VAL)
- b=GetUIElement(ITM)
- 'b=GetUIElement(-1) 'crash
- if b=true then
- 'Display it
-
- if GetWinVer=2 or GetWinVer=4 then
- s=RegReadValue(sPath & VAL)
- if IsEmpty(s)=false then
- Call RegDeleteValue(sPath & VAL)
- end if
- else
- Call IniWriteValue(sFile,sFileSec,VAL,"")
- end if
-
- else
- 'Hide it
-
- if GetWinVer=2 or GetWinVer=4 then
- Call RegWriteValue(sPath & VAL,"1",1)
- else
- Call IniWriteValue(sFile,sFileSec,VAL,"no")
- end if
-
- end if
- End Sub
-
-
- 'Called when the Plugin is about to be removed from memory
- SUB Plugin_Terminate
- END SUB
-
-
-